package com.mkyong.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;

import com.tma.model.JsonMapper;
import org.jboss.resteasy.annotations.providers.jaxb.json.BadgerFish;

//http://localhost:8080/RESTfulExample/rest/hello/hello%20world
@Path("/hello")
public class HelloAppService {

	@BadgerFish
	@GET
	@Produces("application/json")
	public JsonMapper printMessage() {
		JsonMapper mapper = new JsonMapper("abc");
		return mapper;
	}

}